loadMyEssay();

function loadMyEssay() {
	$("#p_fuwu").html("");
	$.ajax({
		url: urlcore + "/api/sortType/selectTwoList",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success: function(data) {

			if(data.success == true) {

				$.each(data.data.list, function(i, n) {
					var erji = '';
					/*$.each(n.sortTypeList, function(i, m) {
						erji += '<a href="6.0.0zhaohuo.html?sortTypeId=' + m.id + '">' + m.sortName + '</a>';
					});*/
					var m=n.sortTypeList;
					for(j in m) {
						erji += '<a href="6.0.0zhaohuo.html?sortTypeId=' + m[j].id + '">' + m[j].sortName + '</a>';
				
					}
					var thislist =
						'<dl class="nav_list">' +
						'<dt>' +
						'<a href="6.0.0zhaohuo.html?sortTypeId=' + n.id + '">' + n.sortName + '</a>' +
						'</dt>' +
						'<dd>' + erji + '</dd>' +
						'</dl>';
					$('#p_fuwu').append(thislist);
				});
			}
		},
		error: function() {
			layer.alert("error");
		}
	});
}